<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.dz.glory.dzmfconfig.main.business.${package.Parent}.mapper.${table.mapperName}">

    <!-- 通用查询映射结果 -->
    <resultMap id="BaseResultMap" type="com.dz.glory.dzmfconfig.main.business.${package.Parent}.model.${entity}">
    <#list table.fields as field>
        <#if field.keyFlag>
        <id column="${field.name}" property="id" />
        <#elseif !field.keyFlag>
        <result column="${field.name}" property="${field.propertyName}" />
        </#if>
    </#list>
    </resultMap>
    <!-- 通用查询结果列 -->
    <sql id="Base_Column_List">
        ${table.fields?map(f -> f.name)?join(", ")}
    </sql>
</mapper>